/*
 * Created: Author: Aléx Carvalho / Date: Jan 23, 2015
 * 
 * Changed: $Author: ac280593@gmail.com $ / $Date: 2015-05-06 00:26:37 +0000 (Wed, 06 May 2015) $
 */
package com.cpm.repository;

import com.cpm.entities.Identity;
import com.cpm.entities.id.Id;
import java.util.Collection;

public interface GenericRepository<IDENTITY extends Identity> {

    public void persist(IDENTITY value);
    
    public void persistList(Collection<IDENTITY> values);
    
    public void update(IDENTITY value);
    
    public IDENTITY findById(Id id);
    
    public Collection<IDENTITY> findAll();
}